import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  name: 'employee',
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  },
  {
    // 动态路由 因为编辑和添加可以复用 id可以选择可传参可不传
    path: 'detail/:id?',
    name: 'detail',
    component: () => import('@/views/employee/detail.vue'),
    meta: {
      title: '详情'
    },
    hidden: true
  }]
}
